package com.itheima.inter2;

public interface Inter {
    void sing();

    public default void dance() {
        System.out.println("跳舞");
    }
}
interface  Inter2{
    public default void dance() {
        System.out.println("跳舞");
    }
}
class InterImpl implements Inter,Inter2 {

    @Override
    public void sing() {
        System.out.println("只因你太美");
    }

    @Override
    public void dance() {
        System.out.println("你啊俩都靠边站,我有弟弟要养");
    }
}

class Test{
    public static void main(String[] args) {
        InterImpl inter = new InterImpl();
        inter.sing();
        inter.dance();

    }
}